ActiveAdmin.register Regex do

    menu :priority => 3, :label => "Regex"

    index :download_links => false do
        column :name
        column :pattern
        column :number
        default_actions
    end

    form do |f|
        f.inputs t("regex.form.title") do
            f.input :name, :label => t("regex.form.name")
            f.input :pattern, :label => t("regex.form.pattern")

            f.buttons :submit, :id => "buttons_fieldset"
        end
    end

end
